page.tsx 743 B

123456789101112131415161718192021222324
  1. import Link from "next/link";
  2. import { Card, CardDescription, CardFooter, CardHeader, CardTitle } from "@/components/ui/card";
  3. import { buttonVariants } from "@/components/ui/button";
  4. export default async function AuthErrorPage({ params }: { params: Promise<{ error: string }> }) {
  5. const result = await params;
  6. return (
  7. <div className="flex h-full flex-col">
  8. <Card>
  9. <CardHeader>
  10. <CardTitle>Error</CardTitle>
  11. <CardDescription>{result.error}</CardDescription>
  12. </CardHeader>
  13. <CardFooter className="flex items-center gap-2">
  14. <Link className={buttonVariants({ size: "small" })} href="/">
  15. Home
  16. </Link>
  17. </CardFooter>
  18. </Card>
  19. </div>
  20. );
  21. }